package router

import (
	"day12_16_shop/internal/api/shop"
	"day12_16_shop/internal/middle"
	"github.com/gin-gonic/gin"
)

func ShopRouter(c *gin.RouterGroup) {
	shopRouter := c.Group("/shop").Use(middle.AuthMiddle())
	{
		shopRouter.POST("/create", shop.ShopCreate)
		shopRouter.GET("/list", shop.ShopList)
		shopRouter.POST("/buy", shop.ShopBuy)
	}
}
